package phoenics.manpads.stinger.model;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

/**
 * @author Phoenics Chow
 * on 2019年01月22日
 */
public class DatabaseTableModel implements IModel{
    private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(DatabaseTableModel.class);
    private StringProperty coluName=new SimpleStringProperty();
    private StringProperty coluType=new SimpleStringProperty();
    private StringProperty coluLength=new SimpleStringProperty();
    private StringProperty coluDot=new SimpleStringProperty();
    private StringProperty coluIsNotNull=new SimpleStringProperty();
    private StringProperty coluKey=new SimpleStringProperty();
    private StringProperty coluReadme=new SimpleStringProperty();

    public String getColuName() {
        return coluName.get();
    }

    public StringProperty coluNameProperty() {
        return coluName;
    }

    public void setColuName(String coluName) {
        this.coluName.set(coluName);
    }

    public String getColuType() {
        return coluType.get();
    }

    public StringProperty coluTypeProperty() {
        return coluType;
    }

    public void setColuType(String coluType) {
        this.coluType.set(coluType);
    }

    public String getColuLength() {
        return coluLength.get();
    }

    public StringProperty coluLengthProperty() {
        return coluLength;
    }

    public void setColuLength(String coluLength) {
        this.coluLength.set(coluLength);
    }

    public String getColuDot() {
        return coluDot.get();
    }

    public StringProperty coluDotProperty() {
        return coluDot;
    }

    public void setColuDot(String coluDot) {
        this.coluDot.set(coluDot);
    }

    public String getColuIsNotNull() {
        return coluIsNotNull.get();
    }

    public StringProperty coluIsNotNullProperty() {
        return coluIsNotNull;
    }

    public void setColuIsNotNull(String coluIsNotNull) {
        this.coluIsNotNull.set(coluIsNotNull);
    }

    public String getColuKey() {
        return coluKey.get();
    }

    public StringProperty coluKeyProperty() {
        return coluKey;
    }

    public void setColuKey(String coluKey) {
        this.coluKey.set(coluKey);
    }

    public String getColuReadme() {
        return coluReadme.get();
    }

    public StringProperty coluReadmeProperty() {
        return coluReadme;
    }

    public void setColuReadme(String coluReadme) {
        this.coluReadme.set(coluReadme);
    }

    @Override
    public void clear() {
        setColuName(null);
        setColuType(null);
        setColuLength(null);
        setColuDot(null);
        setColuIsNotNull(null);
        setColuKey(null);
        setColuReadme(null);
    }
}
